<?php
require_once("checklogin.php");
require_once("classQuanTriTin.php");
$qt = new quantritin;


//Xóa nurse
if (isset($_GET['idNurse'])==true){
	$idNurse = $_GET['idNurse']; 
	settype($idNurse,"int");
	$qt->DeleteNurse($idNurse);
	header("location:main.php?p=nurse_list");
}

//Xóa nurse(s)
if (isset($_GET['listid'])==true){
$listid = explode(",",$_GET['listid']); 
for ($i=0 ; $i<count($listid) ; $i++){
	$idNurse = $listid[$i]; 	
	$qt->DeleteNurse($idNurse);
}
header("location:main.php?p=nurse_list");
}
?>